package com.git.xiaoyou11.domain;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.git.xiaoyou11.soap.help.WsConstants;

@XmlRootElement
@XmlType(name = "New", namespace = WsConstants.NS)
public class New {
	
	private Long id;
	
	private String title;	
	private String content;
	
	private String date;
	
	private String externalLink;
	private  String externalLoginName;
	private  String externalLoginPwd;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public String getExternalLink() {
		return externalLink;
	}
	public void setExternalLink(String externalLink) {
		this.externalLink = externalLink;
	}
	public String getExternalLoginName() {
		return externalLoginName;
	}
	public void setExternalLoginName(String externalLoginName) {
		this.externalLoginName = externalLoginName;
	}
	public String getExternalLoginPwd() {
		return externalLoginPwd;
	}
	public void setExternalLoginPwd(String externalLoginPwd) {
		this.externalLoginPwd = externalLoginPwd;
	}
	
	/**
	 * 重新实现toString()函数方便在日志中打印DTO信息.
	 */
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
}
